import each from '../list/each'

const type = {}

each(
  ['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'],
  function (value) {
    type['is' + value] = function (obj) {
      return Object.prototype.toString.call(obj) === `[object ${value}]`
    }
  }
)

export default type
